def writeCSV(titles,links, codes,filename,nowtime,method):
    infos = list(zip(titles,links,codes))
    with open(f'./result/{nowtime}存活探测{method}/{filename}.csv', 'wt', newline='', encoding='utf_8_sig') as file:
        file.write("标题,url,状态码" + "\n")
        for row in infos:
            file.write(",".join(row) + "\n")
def writetxt(links,filename,nowtime,method):
    with open(f'./result/{nowtime}存活探测{method}/{filename}.txt', "w") as file:
        for url in links:
            file.write(url + "\n")